package com.bulletflash.collision.shapes 
{
	import flash.geom.Matrix3D;
	import flash.geom.Vector3D;
	
	public class btCompoundShape extends btShape
	{
		
		public function btCompoundShape()
		{
			pointer = bullet.createCompoundShapeMethod();
		}
		
		public function addChildShape(child:btShape, localPos:Vector3D, localRot:Matrix3D):void {
			var rotArr:Vector.<Number> = localRot.rawData;
			bullet.addCompoundChildMethod(pointer, child.pointer, localPos.x / _scaling, localPos.y / _scaling, localPos.z / _scaling, rotArr[0], rotArr[4], rotArr[8], rotArr[1], rotArr[5], rotArr[9], rotArr[2], rotArr[6], rotArr[10]);
		}
	}
}